package com.zjjh.algorithm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author yunhe
 */
@Data
@TableName("userinfo")
@Accessors(chain = true)
public class Userinfo {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String nickname;

    private String avatar;

    private String password;

    private String mobile;

    private String realname;

    private Integer gender;

    private Date birthday;

    private String idCode;

    protected Date registedTime;

    /**
     * 1 门店录入, 2 微信小程序, 3 禾家APP 4.T8 5.中医
     */
    private Integer registedMode;

    /**
     * 1 普通客户, 2 会员客户, 3 过期会员
     */
    private Integer userType;

    private Date invalidedTime;

    private Integer status;

    /**
     * 会员开始时间
     */
    private Date vipStartTime;

    private Date createTime;

    private Date updateTime;

    /**
     * 0是未删除，1是已删除
     */
    private Integer deleted;

}